<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title><fmt:message key='ttbl2' /></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
</head>
<body class="layui-layout-body">

<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect>
                    <a href="javascript:void(0);" layadmin-event="flexible" title="<fmt:message key='cbss' />c">
                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="http://www.51tuotuo.com" target="_blank" title="<fmt:message key='qiantai' />">
                        <i class="layui-icon layui-icon-website"></i>
                    </a>
                </li>
                <%--<li class="layui-nav-item" lay-unselect>--%>
                    <%--<a href="javascript:void(0);" layadmin-eventOfMerchant="refresh" title="刷新">--%>
                        <%--<i class="layui-icon layui-icon-refresh-3"></i>--%>
                    <%--</a>--%>
                <%--</li>--%>
                <%--<li class="layui-nav-item layui-hide-xs" lay-unselect>--%>
                <%--<input type="text" placeholder="搜索..." autocomplete="off" class="layui-input layui-input-search" layadmin-eventOfMerchant="serach" lay-action="template/search.html?keywords=">--%>
                <%--</li>--%>
            </ul>
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">

                <%--<li class="layui-nav-item" lay-unselect>--%>
                    <%--<a lay-href="app/message/index.html" layadmin-eventOfMerchant="message" lay-text="消息中心">--%>
                        <%--<i class="layui-icon layui-icon-notice"></i>--%>

                        <%--<!-- 如果有新消息，则显示小圆点 -->--%>
                        <%--<span class="layui-badge-dot"></span>--%>
                    <%--</a>--%>
                <%--</li>--%>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:void(0);" layadmin-event="theme">
                        <i class="layui-icon layui-icon-theme"></i>
                    </a>
                </li>
                <%--便签--%>
                <%--<li class="layui-nav-item layui-hide-xs" lay-unselect>--%>
                <%--<a href="javascript:void(0);" layadmin-eventOfMerchant="note">--%>
                <%--<i class="layui-icon layui-icon-note"></i>--%>
                <%--</a>--%>
                <%--</li>--%>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:void(0);" layadmin-event="fullscreen">
                        <i class="layui-icon layui-icon-screen-full"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:void(0);">
                        <cite>${CURRENT_USER.realName}</cite>
                        <%--<cite><shiro:principal/></cite>--%>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a lay-href="${web_domain}/securitys/users/info" data-icon="&#xe66f;"><i class="layui-icon">&#xe66f;</i> <fmt:message key='jbzl' /></a></dd>
                        <dd><a lay-href="${web_domain}/securitys/users/modifyPassword" data-icon="&#xe673;"><i class="layui-icon">&#xe673;</i> <fmt:message key='xgmm' /></a></dd>
                        <hr>
                        <dd style="text-align: center;"><a href="${web_domain}/logout"><fmt:message key='tuichu' /></a></dd>
                    </dl>
                </li>

<%--                <li class="layui-nav-item layui-hide-xs" lay-unselect>--%>
<%--                    <a href="javascript:void(0);" layadmin-event="about"><i class="layui-icon layui-icon-more-vertical"></i></a>--%>
<%--                </li>--%>
<%--                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>--%>
<%--                    <a href="javascript:void(0);" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>--%>
<%--                </li>--%>
            </ul>
        </div>

        <!-- 侧边菜单 -->
        <jsp:include page="/WEB-INF/commons/left.jsp" flush="true"></jsp:include>

        <!-- 页面标签 -->
        <div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:void(0);"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:void(0);"><fmt:message key='gbdqbqy' /></a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:void(0);"><fmt:message key='gbqtbqy' /></a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:void(0);"><fmt:message key='gbqbbqy' /></a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li lay-id="${web_domain}/main" lay-attr="home/console.html" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>


        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe src="${web_domain}/main" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>

</body>
<script>
    layui.use(['layer'], function (){
        var layer = layui.layer;

        if (!${firstLogin}){
            layer.open({
                type: 2
                , title: '<fmt:message key='xgmm' />'
                , content: '${web_domain}/securitys/users/modifyPassword'
                , closeBtn: 0
                , area: ['500px', '500px']
                , yes: function (index, layero) {
                    var submit = layero.find('iframe').contents().find("#submit");
                    submit.click();
                }
            });
        }

    })
</script>
</fmt:bundle>
</html>